<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="//www.layuicdn.com/layui/css/layui.css" />
    <title>欢迎登录</title>
    <link rel="stylesheet" th:href="@{../../../../static/css/travelPage/travelLogin.css}">
</head>
<body>
<div th:include="travel/travelInclude.html"></div>
<form class="layui-form" th:action="@{http://localhost:80/user/loginUserName}" method="post">
<div class="layui-form-item">
    <label class="layui-form-label">用户名</label>
    <div class="layui-input-block">
        <input type="text" id="userName"name="userName" required  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">密码</label>
    <div class="layui-input-block">
        <input type="password"id="password" name="password" required  lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
    </div>
</div>

<button type="submit" id="a_submit" class="layui-btn layui-btn-radius layui-btn-normal">登录</button>
</form>
<a href="https://github.com/login/oauth/authorize?client_id=1d6549e92e340e23488a=STATE&redirect_uri=http://localhost:80/callbackGitHub">GitHub</a>


<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script th:src="@{../../../../static/js/travelPage/travelLogin.js}"></script>
<script>
    //Demo
    layui.use('form', function(){
        var form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function(data){
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
</script>
</body>
</html>